import request from '@/utils/request'

// 查询货物理重列表
export function listTheoryweight(query) {
  return request({
    url: '/system/theoryweight/list',
    method: 'get',
    params: query
  })
}

// 查询货物理重详细
export function getTheoryweight(goodsTheoryWeightId) {
  return request({
    url: '/system/theoryweight/' + goodsTheoryWeightId,
    method: 'get'
  })
}

// 新增货物理重
export function addTheoryweight(data) {
  return request({
    url: '/system/theoryweight',
    method: 'post',
    data: data
  })
}

// 修改货物理重
export function updateTheoryweight(data) {
  return request({
    url: '/system/theoryweight',
    method: 'put',
    data: data
  })
}

// 删除货物理重
export function delTheoryweight(goodsTheoryWeightId) {
  return request({
    url: '/system/theoryweight/' + goodsTheoryWeightId,
    method: 'delete'
  })
}

// 字典项产地
export function listProductOption(query) {
  return request({
    url: '/system/theoryweight/listproductoption',
    method: 'get',
    params: query
  })
}

// 字典项规格
export function listSpecificationOption(query) {
  return request({
    url: '/system/theoryweight/listspecificationoption',
    method: 'get',
    params: query
  })
}

// 字典项材质
export function listSteelGradeOption(query) {
  return request({
    url: '/system/theoryweight/liststeelgradeoption',
    method: 'get',
    params: query
  })
}
